package gamedemo.entity;

import java.util.Comparator;

public class EntityZComparator implements Comparator<Entity> {

	@Override
	public int compare(Entity o1, Entity o2) {
		return Math.round(o2.getPosition().z) - Math.round(o1.getPosition().z);
	}	
}
